package com.dcc.bean.returnBean;

import com.dcc.bean.ClassBean;
import com.dcc.bean.SchoolBean;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel(value = "返回模版", description = "大部分返回模版")
public class IsOk {
    @ApiModelProperty("状态码")
    private Integer code;
    @ApiModelProperty("信息")
    private String message;

    public static IsOk getInstance(){
        IsOk isOk = new IsOk();
        isOk.setCode(200);
        isOk.setMessage("请求成功");
        return isOk;
    }

    public static ClassBean getClassBean(){
        ClassBean classBean= new ClassBean();
        classBean.setGrade("五年级");
        classBean.setPeopleNumber(36);
        return classBean;
    }
}

